clear;
load composition.605;
load secondary.605;
load polarity.605;
load polarizability.605;
load hydrophobicity.605;
load volume.605;
load list_train.txt;

A=[composition(:,1:20) secondary(:,1:21) polarity(:,1:21) polarizability(:,1:21) hydrophobicity(:,1:21) volume(:,1:21)];

dlmwrite('proteinsTrain', sparse(Scale(A, 0, 1)), 'delimiter', '\t', 'precision', '%.6f');
dlmwrite('proteinsTrainLabels', list_train(:,1:1));